package treasures 
{
	import enemies.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Treasure extends Entity 
	{
		public var _size:uint;
		
		public function Treasure(i:uint = 0, j:uint = 0) 
		{
			super(i, j);
			
			_size = 1;
			
			toggleLight();
		}
		
		public function overlapWithEnemy(e:Enemy):void
		{
			 //Override this function
		}
		
		public function taken():void
		{
			Registry.lights.remove(_light);
			Registry.treasures.remove(this, true);
			kill();
			destroy();
		}
		
		override public function update():void
		{
			super.update();
			
			if (_size > 1) {
				say("Size");
			}
		}
	}
}